package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * 上传考试文件
 */
@FeignClient(
        name = "tea",
        url = "http://192.168.103.13:8098"
)
public interface CocosFeignClient {
    @PostMapping(value = "/process-file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)//指定该方法接收multipart/form-data类型的请求
    String forwardFile(@RequestPart("cocosConfigFile") MultipartFile file);
}


